#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n,i,t=1;
	cin>>n;
	for(i=n;i>1;i--)
	t=(t+1)*2;
	cout<<t;
    return 0;
}
